package cn.serenedream.housedecoration.result;

import cn.serenedream.housedecoration.entity.User;

import java.util.Date;

public class SaleResult {
    private String id;
    private Double price;
    private Date createDate;
    private User user;

    public SaleResult() {
    }

    public SaleResult(String id, Double price, Date createDate, User user) {
        this.id = id;
        this.price = price;
        this.createDate = createDate;
        this.user = user;
    }

    /**
     * 获取
     * @return id
     */
    public String getId() {
        return id;
    }

    /**
     * 设置
     * @param id
     */
    public void setId(String id) {
        this.id = id;
    }

    /**
     * 获取
     * @return price
     */
    public Double getPrice() {
        return price;
    }

    /**
     * 设置
     * @param price
     */
    public void setPrice(Double price) {
        this.price = price;
    }

    /**
     * 获取
     * @return createDate
     */
    public Date getCreateDate() {
        return createDate;
    }

    /**
     * 设置
     * @param createDate
     */
    public void setCreateDate(Date createDate) {
        this.createDate = createDate;
    }

    /**
     * 获取
     * @return user
     */
    public User getUser() {
        return user;
    }

    /**
     * 设置
     * @param user
     */
    public void setUser(User user) {
        this.user = user;
    }

    public String toString() {
        return "SaleResult{id = " + id + ", price = " + price + ", createDate = " + createDate + ", user = " + user + "}";
    }
}
